<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type='text/css' href="__PUBLIC__/Css/Admin/common.css">
    </head>
    <body>
        <h2 class='top'>
            <a href="{:U('addTopCate')}">添加顶级分类</a>
        </h2>
        <div class='add_list'>
        <table class="table1">
            <thead>
                <tr>
                    <th width="10%">ID</th>
                    <th width="10%">PID</th>
                    <th width='38%'>分类名称</th>
                    <th  width="42%">操作</th>
                </tr>
            </thead>
            <tbody>
               <foreach name='cate' item='v'>
                <tr>
                    <td width='8%' align='center'>{$v.id}</td>
                    <td width='8%' align='center'>{$v.pid}</td>
                    <td>{:str_repeat('&nbsp;&nbsp;', $v['lv'])}{$v.html}{$v.name}</td>
                    <td align='center'>
                        <a href="{:U('addCate', array('pid' => $v['id']))}" class='add-cld'>添加子栏目</a>
                        <a href="" class='edit'>编辑</a>
                        <a href="{:U('delCate', array('id' => $v['id']))}" class='del'>删除</a>
                    </td>
                </tr>
                </foreach>
            </tbody>
        </table>
    </div>
    </body>
</html>